package com.grape.feign.callback;

import com.grape.feign.UserFeign;
import com.grape.result.R;
import org.slf4j.Logger;
import org.springframework.stereotype.Component;

@Component
public class UserFeignCallback implements UserFeign {

    private static final Logger logger = org.slf4j.LoggerFactory.getLogger(UserFeignCallback.class);

    @Override
    public R getByUserId(String userId) {
        logger.error("User Server Fallback..........");
        return R.callback("兜底数据", null);
    }
}
